import { type ConnectionLineComponentProps } from '@xyflow/react'

const CustomConnectionLine: React.FC<ConnectionLineComponentProps> = ({ fromX, fromY, toX, toY }) => {
  const pathD = `M${fromX} ${fromY} L${toX} ${toY}`
  return <path fill="none" stroke="#fff" strokeWidth={1.5} d={pathD} className="animated" />
}

export default CustomConnectionLine
